package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceEmailClienteDAO;
import br.org.credfaz.sis.modelo.TceEmailCliente;

public class AtualizaTceEmailClienteAction {
	
	
	private List<TceEmailCliente> email;
		
		@Action(value="atualizaEmail", results= {
				@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaEnderecos"})
		})
		public String execute(){
			email = new TceEmailClienteDAO().lista();
			return "ok";
		}
		public List<TceEmailCliente> getTceEmailClientes(){
			return email;
		}

}
